package org.jeecg.modules.rooms.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 全天房第2点按分钟收费按房型设置表
 * </p>
 *
 * @author Claude
 * @since 2023-03-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ces_all_day_rule_minute")
public class CesAllDayRuleMinute extends Model<CesAllDayRuleMinute> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 酒店ID
     */
    private String hotelId;

    /**
     * 房型ID
     */
    private String roomLayoutId;

    /**
     * 每隔n 分钟 
     */
    private Integer minute;

    /**
     * 收取费用（元）
     */
    private BigDecimal price;

    /**
     * 超过分钟
     */
    private Integer moreThenMinute;

    /**
     * 超过时间收费（单位元）
     */
    private BigDecimal moreThenPrice;

    /**
     * 创建时间
     */
    @TableField("createAt")
    private LocalDateTime createAt;

    /**
     * 修改时间
     */
    @TableField("updateAt")
    private LocalDateTime updateAt;

    /**
     * 逻辑删除字段
     */
    private Boolean invalid;


    public static final String ID = "id";

    public static final String HOTEL_ID = "hotel_id";

    public static final String ROOM_LAYOUT_ID = "room_layout_id";

    public static final String MINUTE = "minute";

    public static final String PRICE = "price";

    public static final String MORE_THEN_MINUTE = "more_then_minute";

    public static final String MORE_THEN_PRICE = "more_then_price";

    public static final String CREATEAT = "createAt";

    public static final String UPDATEAT = "updateAt";

    public static final String INVALID = "invalid";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
